<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>景旭商城-我的客户</title>
<%@ include file="/page/pc/include.jsp"%>
</head>
<body>
	<div class="wrap">
		<jsp:include page="_my_header.jsp" />
		<div class="site_wrap18">
			<div class="site_wrap18_con">
				<div class="main">
					<jsp:include page="_my_left.jsp" />
					<div class="rightitem">

						<div class="dd_part">
							<div class="hd">
								<h3>我的客户</h3>
							</div>
							<div class="bd">
								<div class="dd_part1">
									<div class="hd1">
										<div class="left">
										</div>
										<div class="right">
											<div class="search_part12">
												<form id="my_customer_search_form" action="${rootPath}/pc/my/myCustomer" method="post" >
													<input id="search_key" name="searchKey" type="text" class="inputstyle1" value="${param.searchKey }" placeholder="用户名/手机号">
													<input id="btn_search_order" type="button" class="inputbtn1" value=" " onclick="$('#my_customer_search_form').submit();">
												</form>
											</div>
										</div>
									</div>
									<div class="bd1">
										<c:choose>
											<c:when test="${fn:length(pageBean.recordList) > 0 }">
												<div class="mytable2">
													<div class="hd2">
														<ul>
															<li class="a1" style="width:310px;">用户名</li>
															<li style="width:150px;">手机号码</li>
															<li style="width:170px;">注册时间</li>
															<li style="width:170px;">最后下单时间</li>
															<li style="width:150px;">订单信息</li>
														</ul>
													</div>
													<div class="bd2">
														<dl>
															<dt>
																<table>
																	<tbody>
																		<c:forEach items="${pageBean.recordList }" var="customer" varStatus="status">
																			<tr>
																				<td class="a11">
																					<div class="m_piclist">
																						<div class="mypic8">
																							<div class="pic">														
																								<c:choose>
																									<c:when test="${fn:contains(customer.headImage, 'http')}">
																										<img src="${customer.headImage }" onerror="this.src='<%=basePath%>/statics/images/user.png'"/>
																									</c:when>
																									<c:otherwise>
																										<img src="${imgRootURL }${customer.headImage }${ossImgZoomPC }" onerror="this.src='<%=basePath%>/statics/images/user.png'"/>
																									</c:otherwise>
																								</c:choose>
																							</div>
																							<div class="item-info">
																								<h2 style="height:auto;padding-top:10px">
																									${customer.userName }
																								</h2>
																								<h3>
																									${customer.companyInfo.provinceName }
																									${customer.companyInfo.cityName }
																									${customer.companyInfo.areaName }
																								</h3>
																							</div>
																						</div>
																					</div>
																					
																				</td>
																				<td class="a12">${customer.mobile }</td>
																				<td class="a13">
																					<fmt:formatDate value="${customer.createTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
																				</td>
																				<td class="a14">
																					<fmt:formatDate value="${customer.extraInfo.lastOrderTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
																				</td>
																				<td class="a15">
																					${empty customer.extraInfo.orderNum ? 0 : customer.extraInfo.orderNum }
																					/￥${empty customer.extraInfo.totalOrderMoney ? 0 : customer.extraInfo.totalOrderMoney }
																				</td>
																			</tr>
																		</c:forEach>
																	</tbody>
																</table>
															</dt>
														</dl>
													</div>
													<jx:paging formID="my_customer_search_form" isShowJumpToButton="true" numPerPage="10" isShowpageCount="true"></jx:paging>
												</div>
											</c:when>
											<c:otherwise>
												<div class="noresult" style="text-align: center;height:245px;">
													<p>
														<i><img style="height:100px;width:100px;" src="<%=basePath%>/statics_wx/images/icon_noorder.png" /></i>
														<br><br><br>
														<span>您还没有客户~</span>
													</p>
												</div>
											</c:otherwise>
										</c:choose>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div>
		<!---网站底部开始-->
		<jsp:include page="../footer.jsp?showQaFlag=0" />
		<!---网站底部结束-->
	</div>
	<style type="text/css">
		.m_piclist{margin-bottom:-10px}
		.m_piclist .mypic8{border-bottom:1px solid #cccccc;padding-bottom:10px;margin-bottom:10px}
		.m_piclist .mypic8:last-child{padding-bottom:0;border-bottom:none;margin-bottom:none}
		.mytable2 table tr td{padding:10px 20px;border:none;border-bottom:1px solid #ccc;font-size:12px}
	</style>
</body>
</html>